package com.tan00xu.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tan00xu.dao.dos.Archives;
import com.tan00xu.pojo.Article;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;


@Mapper
public interface ArticleMapper extends BaseMapper<Article> {

    List<Archives> listArchives();

    IPage<Article> listArchivesByPageParams(
            Page<Article> page,
            Long categoryId,
            Long tagId,
            String year,
            String month
    );
}
